//选择控件的名称
var selector = [ "province", "city"];
//初始值输入框的名称，可以用两个隐含输入框代替
var initInput=["province_init","city_init"];
//["请选择"],"请选择"],  
//地方名称 
var memu=[
["北京",""],
["上海"],
["天津"],
["重庆"],
["山东省"],
["江苏省"],
["浙江省"],
["福建省"],
["广东省"],
["黑龙江省"],
["吉林省"],
["辽宁省"],
["内蒙古"],
["河北省"],
["山西省"],
["河南省"],
["安徽省"],
["陕西省"],
["江西省"],
["湖北省"],
["湖南省"],
["海南省"],
["甘肃省"],
["宁夏"],
["青海省"],
["四川省"],
["贵州省"],
["云南省"],
["广西"],
["西藏"],
["新疆"],
["海南省"],
["香港"],
["台湾"],
["澳门"],
["Afghanistan"],
["Albania"],
["Algeria"],
["Andorra"],
["Angola"],
["Antigua and Barbuda"],
["Argentina"],
["Armenia"],
["Australia"],
["Austria"],
["Azerbaijan"],
["Bahamas"],
["Bahrain"],
["Bangladesh"],
["Barbados"],
["Belarus"],
["Belgium"],
["Benin"],
["Bhutan"],
["Bolivia"],
["Bosnia and Herzegovina"],
["Botswana"],
["Brazil"],
["Brunei"],
["Bulgaria"],
["Burundi"],
["Cambodia"],
["Cameroon"],
["Canada"],
["Cape Verde"],
["Chile"],
["Colombia"],
["Comoros"],
["Congo"],
["Congo(Kinshasa)"],
["Cook Islands"],
["Costa Rica"],
["Cote d'lvoire"],
["Croatia"],
["Cuba"],
["Cyprus"],
["Czech"],
["Democratic People's Republic of Korea"],
["Denmark"],
["Djibouti"],
["Dominica"],
["East Timor"],
["Ecuador"],
["Egypt"],
["Equatorial Guinea"],
["Eritrea"],
["Estonia"],
["Ethiopia"],
["European Union"],
["Fiji"],
["Finland"],
["France"],
["Gabon"],
["Gambia"],
["Georgia"],
["Germany"],
["Ghana"],
["Greece"],
["Grenada"],
["Guinea"],
["Guinea Bissau"],
["Guyana"],
["Hungary"],
["Iceland"],
["India"],
["Indonesia"],
["Iran"],
["Iraq"],
["Ireland"],
["Israel"],
["Italy"],
["Jamaica"],
["Japan"],
["Jordan"],
["Kazakstan"],
["Kenya"],
["Kirgizstan"],
["Kiribati"],
["Kuwait"],
["Laos"],
["Latvia"],
["Lebanon"],
["Lesotho"],
["Liberia"],
["Libya"],
["Liechtenstein"],
["Lithuania"],
["Luxembourg"],
["Macedonia"],
["Madagascar"],
["Malawi"],
["Malaysia"],
["Maldives"],
["Mali"],
["Malta"],
["Mauritania"],
["Mauritius"],
["Mexico"],
["Micronesia"],
["Moldova"],
["Monaco"],
["Mongolia"],
["Montenegro"],
["Morocco"],
["Mozambique"],
["Myanmar"],
["Namibia"],
["Nepal"],
["Netherlands"],
["New Zealand"],
["Niger"],
["Nigeria"],
["Norway"],
["Oman"],
["Pakistan"],
["Palestine"],
["Papua New Guinea"],
["Peru"],
["Philippines"],
["Poland"],
["Portugal"],
["Qatar"],
["Republic of Korea"],
["Romania"],
["Russia"],
["Rwanda"],
["Samoa"],
["San Marino"],
["Sao Tome and Principe"],
["Saudi Arabia"],
["Senegal"],
["Serbia"],
["Seychelles"],
["Sierra Leone"],
["Singapore"],
["Slovakia"],
["Slovenia"],
["Somalia"],
["South Africa"],
["Spain"],
["Sri Lanka"],
["Sudan"],
["Suriname"],
["Sweden"],
["Switzerland"],
["Syria"],
["Tajikistan"],
["Tanzania"],
["Thailand"],
["The Central African Republic"],
["The Former Czechoslovakia"],
["Togo"],
["Tonga"],
["Trinidad and Tobago"],
["Tunisia"],
["Turkey"],
["Turkmenistan"],
["Uganda"],
["Ukraine"],
["United Arab Emirates"],
["United Kingdom"],
["United States of America"],
["Uruguay"],
["Uzbekistan"], 
["Vanuatu"],
["Vatican"],
["Venezuela"],
["Vietnam"],
["Yemen"], 
["Zambia"],
["Zimbabwe"]
]
;

var menuProvice = document.getElementById(selector[0]);


function LoadProvice()
{
menuProvice.length++;
menuProvice.options[menuProvice.length - 1].text = "选择";
menuProvice.options[menuProvice.length - 1].value = "";


for(var i = 0;i < memu.length;i++)
{
	menuProvice.length++;
	menuProvice.options[menuProvice.length - 1].text = memu[i][0];
	menuProvice.options[menuProvice.length - 1].value = memu[i][0];                    
}
//menuProvice.onchange = Function("ProviceChanged()");

}
LoadProvice();

